﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApplication1
{
    class Library
    {
        public List<string> Files;
        public Library()
        {
        }

        public void getFromDir(string path)
        {
            foreach (string str in Files = Directory.GetFiles(path).ToList())
            {
                if (!str.Contains(".mp3"))
                {
                    Files.Remove(str);
                }
            }
           
        }
    }
}
